package com.sinosoft.emplmis.jobless.service;

import java.util.List;

import org.apache.log4j.Logger;

import com.sinosoft.emplmis.jobless.entity.KnryAideffectEntity;
import com.sinosoft.emplmis.jobless.manager.KnryAideffectManager;
import com.sinosoft.emplmis.jobless.web.dto.JoblessSearchData;

public class KnryAideffectService {

	private KnryAideffectManager knryAideffectManager;

	public KnryAideffectManager getKnryAideffectManager() {
		return knryAideffectManager;
	}

	public void setKnryAideffectManager(KnryAideffectManager knryAideffectManager) {
		this.knryAideffectManager = knryAideffectManager;
	}
	
	public List<KnryAideffectEntity> selectAll(JoblessSearchData data,String unemployedId){
		return knryAideffectManager.selectAll(data,unemployedId);	
	}
	
	public int insert(KnryAideffectEntity Entity) {
		return knryAideffectManager.insert(Entity);
	}
	
	public int deleteByPrimaryKey(String id){
		return knryAideffectManager.deleteByPrimaryKey(id);
	}
	
	public KnryAideffectEntity selectByPrimaryKey(String id){
		return knryAideffectManager.selectByPrimaryKey(id);	
	}
	
	public int updateByPrimaryKey(KnryAideffectEntity record) {
		return knryAideffectManager.updateByPrimaryKey(record);
	}
	
	/**
	  * 获取总条目数
	  * @param data
	  * @return
	  */
	public int count(String unemployedId){
		Logger.getRootLogger().info("获取总条目数");
	    return knryAideffectManager.count(unemployedId);
    }
}
